package ListDemo.demo3;

public class Teddy extends Dog{
    public Teddy(){
        super();
    }
    public Teddy(String name,int age){
        super(name,age);
    }
    @Override
    public void eat(){
        System.out.println("一只叫" + this.getName() + "的," + this.getAge() + "岁的泰迪,正在吃骨头,边吃边曾");
    }
}
